<?php
echo 'begin truncate...';

include 'viper/autoloader.php';

$sql = 'TRUNCATE TABLE userfeaturescore';
viper_dao::query($sql);

$sql = 'TRUNCATE TABLE userquicklist';
viper_dao::query($sql);

$sql = 'TRUNCATE TABLE globalaverage';
viper_dao::query($sql);

echo '<br />end truncate.<br/>';






echo '<br/>begin autopopulation...';
viper_server_autoregistration::mass_autoregister();
echo '<br />done autopopulation.<br />';







echo '<br/>begin reindexing...';
viper_server_reindex::reindex();
echo '<br/>end reindexing.<br/>';

echo '<br/><br/>Userbase refresh complete. <a href="index.php">Click here to go to Dashboard</a>';
?>